package cn.ad.server.web.spring.model.bes;

import cn.ad.server.web.spring.model.bes.BES.BidRequest.Mobile.MobileApp.AppInteractionType;
import cn.ad.server.domain.enumration.FalconAppInteractionType;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangwei
 */
public enum AdBesAppInteractionType {


    TELEPHONE(AppInteractionType.TELEPHONE,FalconAppInteractionType.TELEPHONE),
    DOWNLOAD(AppInteractionType.DOWNLOAD,FalconAppInteractionType.DOWNLOAD),
    DEEPLINK(AppInteractionType.DEEPLINK,FalconAppInteractionType.DEEPLINK);

    private AppInteractionType besType;
    private FalconAppInteractionType falconType;

    public final static Map<AppInteractionType, FalconAppInteractionType> adTypeMap = new HashMap<>();

    static {
        for (AdBesAppInteractionType adViewConnection : AdBesAppInteractionType.values()) {
        	adTypeMap.put(adViewConnection.besType, adViewConnection.falconType);
        }
    }

    AdBesAppInteractionType(AppInteractionType besType, FalconAppInteractionType falconType) {

        this.besType = besType;
        this.falconType = falconType;
    }

	public AppInteractionType getBesType() {
		return besType;
	}

	public void setBesType(AppInteractionType besType) {
		this.besType = besType;
	}

	public FalconAppInteractionType getFalconType() {
		return falconType;
	}

	public void setFalconType(FalconAppInteractionType falconType) {
		this.falconType = falconType;
	}
    
    
    
    
}
